package com.tencent.org.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.tencent.basic.domain.BaseDomain;
import com.tencent.system.domain.Role;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class Emp extends BaseDomain {
    private String username;
    private String phone;
    private String email;
    private String salt;
    private String password;
    private Integer age;
    private Integer state = 1;

    private Department departmentName;
    private Long department_id;
    private Department department;
    private Long logininfo_id;
    private Long shop_id;
    private Shop shop;
    private Long roleId;
    private Role role;

    // 设置一个装子部门的集合
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Emp> children = new ArrayList<>();
}
